import inherits from 'inherits'

import Modeler from 'bpmn-js/lib/Modeler'
import Viewer from 'bpmn-js/lib/Viewer'

import CustomModule from '../custom'
import ZoomScrollModule from 'diagram-js/lib/navigation/zoomscroll'
import MoveCanvasModule from 'diagram-js/lib/navigation/movecanvas'

function CustomModeler(options) {
  Modeler.call(this, options)

  this._customElements = []
}
inherits(CustomModeler, Modeler)
CustomModeler.prototype._modules = [].concat(CustomModeler.prototype._modules, [
  CustomModule
])

function CustomViewer(options) {
  Viewer.call(this, options)
}
inherits(CustomViewer, Viewer)
CustomViewer.prototype._modules = [].concat(Viewer.prototype._modules, [
  ZoomScrollModule,
  MoveCanvasModule
])

export { CustomModeler, CustomViewer }
